<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>07_边框与内间距</title>
    <style>
        .d1 {
            width: 200px;
            height: 100px;
            background-color: #00FF00;
            border: 3px solid green;
            border-bottom: 5px dotted red;
        }
        .d2 {
            width: 200px;
            height: 200px;
            background-color: pink;
            border-radius: 75px;/*  值越大角越圆  */
        }
        .d3 {
            width: 200px;
            height: 100px;
            background-color:mediumpurple;
            border-radius: 50px;/*  值越大角越圆  */
        }
        .d4 {
            width: 200px;
            height: 200px;
            background-color:deepskyblue;
            padding: 30px ;
            border: 10px solid blue;
            margin: 20px;
            box-sizing: border-box;
        }
        span {
            border: 1px solid red;
        }
        .s1 {
            padding: 30px;/*行内元素垂直方向上外间距不会生效*/
        }
    </style>
</head>
<body>
    <span>span</span><span class="s1">span</span><span>span</span>
    <div class="d1"></div>
    <div class="d2"></div>
    <div class="d3"></div>
    <div class="d4">我喜欢迪丽热巴</div>
</body>
</html>